I see that virtual bits are currently 48-63 and extended virtual bits 1024-2047.
The manual that is one pdf file still has them as 32-63 under ClearBit etc. docs. Online versions still reference 32-63 under ReadBit.
I am working with KMotionCNC code and I am trying to read the bit states using MAIN_STATUS - MainStatus. It has:
int BitsState[2]; // KMotion - 64 bits of state lsb=I/O bit0
and
int VirtualBits; // Virtual I/O bits simulated in memory
int VirtualBitsEx0; // only upload 32 1024 Expanded Virtual Bits
I am guessing that BitsState[1] holds 32..47 and does not have virtual bits 48-63.
I would also guess that VirtualBits holds 48..63 starting at offset 0?
I would bet that VirtualBitsEx0 holds 1024..1055?
Is that correct?
Thanks.
Group: DynoMotion
Message: 8032
From: Tom Kerekes
Date: 7/31/2013
Subject: Re: Virtual bits, manual, MAIN_STATUS
Hi Dean,
That is all correct. Our older KMotion boards had 32 bits of IO and 32 Virtual Bits as IO 0-63. KFLOP has 48 bits of IO and 16 Virtual Bits.